﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace HelloWPF.DataBinding
{
    /// <summary>
    /// DataGridDataBinding.xaml 的交互逻辑
    /// </summary>
    public partial class DataGridDataBinding : Window
    {
        public DataGridDataBinding()
        {
            InitializeComponent();
            DataGridViewModel viewMode = new DataGridViewModel();
            viewMode.Query();
            this.DataContext = viewMode;
        }

        //private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        //{
        //    //DataGrid dg = (DataGrid)sender;
        //    //DataRowView rowSelected = dg.SelectedItem as DataRowView;
        //    //if (rowSelected != null)
        //    //{
              
        //    //}

        //}
    }
}
